package com.yww.datastructure.blockingqueue;

/**
 * @author yww
 * @description 阻塞队列接口
 * @since 2024/2/7 11:56
 */
public interface BlockingQueue<E> {
    void offer(E e) throws InterruptedException;

    boolean offer(E e, long timeout) throws InterruptedException;

    E poll() throws InterruptedException;

    E poll(long timeout) throws InterruptedException;

    boolean isEmpty();

    boolean isFull();

    int size();
}
